package com.mrent.util;

public enum PaymentEnum {
	
	ALIPAY(1),//支付宝.
	CHINABLANK(1);//网银在线
	
	
	Integer payType;
	
	PaymentEnum(Integer payType){
		this.payType = payType;
	}
	
	public Integer getPayType(){
		return this.payType;
	}
	
	public static PaymentEnum getPayment(Integer payType){
		switch(payType.intValue()){
			case 1:
				return ALIPAY;
			case 2:
				return CHINABLANK;
			default:
				return ALIPAY;
		}
	}
	

}
